<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common.inc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%java.util.Random r=new java.util.Random();  %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style1.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="./js/form.js"></script>
<script type="text/javascript" language="javascript">
<!--
	function checkForm(){
		var objs = document.getElementsByName("id");
		var sign = 0;
		for(var i = 0; i < objs.length; i++){
			if(objs[i].value != 0 && objs[i].checked)sign = sign + 1;
		}
		if(sign <= 0){
			alert("<fmt:message key='common.message.wDiscard'/>");
			return false;
		}
		return true;
	}
	
	function checkForm2(){
		var objs = document.getElementsByName("id");
		var sign = 0;
		for(var i = 0; i < objs.length; i++){
			if(objs[i].value != 0 && objs[i].checked)sign = sign + 1;
		}
		if(sign <= 0){
			alert("请选择待操作的项！");
			return false;
		}else if(sign > 1){
			alert("只能选择一个待操作项！");
			return false;
		}
		return true;
	}

	function change(){
		document.getElementById("sFlag").value = "1";
		var currentViewType = document.all.viewType.value;
		document.customerInfoForm.action = "./customerManage.do?action=display&viewType="+currentViewType;
		document.customerInfoForm.target = "main";
		document.customerInfoForm.submit();		
	}

	function shareCustomer(){
		if(checkForm2()){
			var objs = document.getElementsByName("id");
			var id = 0;
			for(var i = 0; i < objs.length; i++){
				if(objs[i].value != 0 && objs[i].checked){
					id = objs[i].value;
					break;
				}
			}
			var isWrite = document.getElementById("share_"+id);
			var userId = document.getElementById("userId_"+id);
			if(isWrite.value != "" && isWrite.value == '1' && userId.value == "<c:out value='${userId}'/>"){
				window.location.href = "./customerManage.do?action=shareCustomer&customerId="+id+"&sign=1";
				window.location.target = "main";
			}else{
				alert("您对此共享客户只有可读权限，不能共享客户信息！");
			}
		}
	}
	
	function addCustomer(){
		if("<c:out value='${notAdd}'/>" == 1){
			alert("<fmt:message key='customer.message.overstep'/>");
		}else{
			window.location.href = "./customerManage.do?action=preAddCustomer";
			window.location.target = "main";
		}
	}
	
	function updateCustomer(){
		if(checkForm2()){
			var objs = document.getElementsByName("id");
			var id = 0;
			for(var i = 0; i < objs.length; i++){
				if(objs[i].value != 0 && objs[i].checked){
					id = objs[i].value;
					break;
				}
			}
			var isWrite = document.getElementById("share_"+id);
			if(isWrite.value != "" && isWrite.value == '1'){
				window.location.href = "./customerManage.do?action=preUpdateCustomer&id="+id+"&sign=1";
				window.location.target = "main";
			}else{
				alert("您对此共享客户只有可读权限，不能修改客户信息！");
			}
		}
	}
	
	function discardCustomer(){
		var untappedDisNum = "<c:out value='${discardLimitNum.untappedCustomerNum}'/>";
		var isExpUser = "<c:out value='${isExpUser}'/>";
		if(confirm("确定要删除选中客户吗？") && checkForm()){
			var objs = document.getElementsByName("id");
			var sign = 0;
			for(var i = 0; i < objs.length; i++){
				if(objs[i].value != 0 && objs[i].checked){
					var id = objs[i].value;
					var isDelete = document.getElementById("del_"+id);
					if(isDelete.value == 'false'){
						var customerName = document.getElementById("customer_"+id);
						alert(customerName.value + " 是被共享客户不能删除!");
						break;
					}else{
						sign = sign + 1;
					}
				}
			}
		
			if(sign > 0){
				if(isExpUser == '1' || sign <= untappedDisNum){
					document.customerInfoForm.action = "./customerManage.do?action=discardCustomer";
					document.customerInfoForm.target = "main";
					document.customerInfoForm.submit();
					
				}else if(untappedDisNum <= 0){
					alert("<fmt:message key='customer.message.overstepDiscard'/>");
				}else{
					alert("<fmt:message key='customer.message.currentDiscard'/>"+untappedDisNum+"<fmt:message key='customer.message.num'/>");
				}
			} 
		}
		
	}

	function addLinkman(id){
		window.location.href = "./linkman.do?action=preAddLinkman&customerId="+id+"&sign=1";
		window.location.target = "main";
	}
	
	function updateLinkman(id){
		window.location.href = "./linkman.do?action=preUpdateLinkman&customerId="+id+"&sign=1";
		window.location.target = "main";
	}
	
	function deptCustomer(){
		window.location.href = "./customerManage.do?action=deptCustomer";
		window.location.target = "main";
	}
	
	function addSaleRecord(){
		var objs = document.getElementsByName("id");
		var sign = 0;
		for(var i = 0; i < objs.length; i++){
			if(objs[i].value != 0 && objs[i].checked)sign = sign + 1;
		}
		if(sign <= 0){
			window.location.href = "./saleRecord.do?action=preAddSaleRecord&sign=1";
			window.location.target = "main";
		}else{
			addSaleRecordOne();
		}
	}
	
	function addSaleRecordOne(){
		if(checkForm2()){
			var objs = document.getElementsByName("id");
			var id = 0;
			for(var i = 0; i < objs.length; i++){
				if(objs[i].value != 0 && objs[i].checked){
					id = objs[i].value;
					break;
				}
			}
			var isWrite = document.getElementById("share_"+id);
			if(isWrite.value != "" && isWrite.value == '1'){
				window.location.href = "./saleRecord.do?action=preAddSaleRecordOne&customerId="+id+"&sign=1";
				window.location.target = "main";
			}else{
				alert("您对此共享客户只有可读权限，不能新增对应的销售日志！");
			}
		}
	}
	
	function advancedQueryDialog(){
		var url = "./customerManage.do?action=advancedQueryCustomer&radom="+<%=r.nextInt(100)%>;
		var dlgParam = "dialogHeight:360px;dialogWidth:450px;dialogTop:300px;dialogLeft:400px;status:no;help:no;scrollbars:yes;";
		var rt = window.showModalDialog(url,"",dlgParam);
		if(rt != undefined){		
			//根据从子窗口得到的值，从中提取customerCode,customerName,industryId,areaId,
			//customerSourceId,requireDesc,startCreateDate,endCreateDate,startLastLinkDate,endLastLinkDate
			var tStr = rt.split(",");
			document.getElementById("customerCode").value = tStr[0];										
			document.getElementById("customerName").value = tStr[1];
			document.getElementById("industryId").value = tStr[2];
			document.getElementById("areaId").value = tStr[3];
			document.getElementById("customerSourceId").value = tStr[4];
			document.getElementById("requireDesc").value = tStr[5];
			document.getElementById("startCreateDate").value = tStr[6];
			document.getElementById("endCreateDate").value = tStr[7];
			document.getElementById("startLastLinkDate").value = tStr[8];
			document.getElementById("endLastLinkDate").value = tStr[9];
			
			document.getElementById("sFlag").value = "2";
			document.customerInfoForm.action = "./customerManage.do";
			document.customerInfoForm.target = "main";
			document.customerInfoForm.submit();
		}
	}

	function addSaleRecordHangup(){
		if(checkForm2()){
			var objs = document.getElementsByName("id");
			var id = 0;
			for(var i = 0; i < objs.length; i++){
				if(objs[i].value != 0 && objs[i].checked){
					id = objs[i].value;
					break;
				}
			}
			var isWrite = document.getElementById("share_"+id);
			var isHangup = document.getElementById("hangup_"+id);
			var isSaleStage = document.getElementById("saleStage_"+id);
			if(isWrite.value != "" && isWrite.value == '1'){
				if(isHangup.value != "1" && isHangup.value != "2" && isHangup.value != "21"){
					if(isSaleStage.value != "" && isSaleStage.value > 0){
						document.customerInfoForm.action = "./saleRecord.do?action=preAddSaleRecordHangup&customerId="+id;
						document.customerInfoForm.target = "main";
						document.customerInfoForm.submit();
					}else{
						alert("此客户没有商机跟进记录，不能被挂起！");
					}
				}else{
					alert("此客户已被挂起！");
				}
			}else{
				alert("您对此共享客户只有可读权限，不能挂起客户！");
			}
		}
	}

	function addSaleRecordClose(){
		if(checkForm2()){
			var objs = document.getElementsByName("id");
			var id = 0;
			for(var i = 0; i < objs.length; i++){
				if(objs[i].value != 0 && objs[i].checked){
					id = objs[i].value;
					break;
				}
			}
			var isWrite = document.getElementById("share_"+id);
			var isSaleStage = document.getElementById("saleStage_"+id);
			if(isWrite.value != "" && isWrite.value == '1'){
				if(isSaleStage.value != "" && isSaleStage.value > 0){
					document.customerInfoForm.action = "./saleRecord.do?action=preAddSaleRecordClose&customerId="+id;
					document.customerInfoForm.target = "main";
					document.customerInfoForm.submit();
				}else{
					alert("此客户没有商机跟进记录，不需要关闭商机！");
				}
			}else{
				alert("您对此共享客户只有可读权限，不能关闭商机！");
			}
		}
	}
	
	function recordSort(record,imgId){
		var viewType = "<c:out value='${viewType}'/>";
		var sortRecord = "<c:out value='${queryCustomer.sortRecord}'/>";
		var sortWay = "<c:out value='${queryCustomer.sortWay}'/>";
		if(sortRecord == record){
			if(sortWay == "asc"){
				document.getElementById("sortWay").value = "desc";
				document.getElementById(imgId).src = "./images/arrow_down.gif";
			}else if(sortWay == "desc"){
				document.getElementById("sortWay").value = "asc";
				document.getElementById(imgId).src = "./images/arrow_up.gif";
			}else{
				document.getElementById("sortWay").value = "desc";
				document.getElementById(imgId).src = "./images/arrow_down.gif";
			}
		}else{
			document.getElementById("sortWay").value = "asc";
			document.getElementById(imgId).src = "./images/arrow_up.gif";
		}
		document.getElementById("sortRecord").value = record;
		document.getElementById("sortSign").value = "1";
		
		//alert(document.getElementById("sortRecord").value + "==="+ document.getElementById("sortWay").value);
		document.customerInfoForm.action = "./customerManage.do?action=display&viewType="+viewType+"&imgId="+imgId;
		document.customerInfoForm.target = "main";
		document.customerInfoForm.submit();
	}
	
	function pageCustomer(flag){
		var viewType = "<c:out value='${viewType}'/>";
		document.customerInfoForm.action = "./customerManage.do?action=display&flag="+flag+"&viewType="+viewType;
		document.customerInfoForm.target = "main";
		document.customerInfoForm.submit();
	}
	
	function initPage(){
		d.style.width = (document.body.scrollWidth - 32) +"px";
		tp.style.width = (document.body.scrollWidth - 32) +"px";
		
		if("<c:out value='${deleteResult}'/>" == 1){
			alert("<fmt:message key='common.message.deleteSuccess'/>");
		}else if("<c:out value='${deleteResult}'/>" == 2){
			alert("当前客户已挂起！");
		}else if("<c:out value='${deleteResult}'/>" == 3){
			alert("当前客户已关闭商机！");
		}
		
		//字段排序用
		var sortWay = "<c:out value='${queryCustomer.sortWay}'/>";
		var imgId = "<c:out value='${imgId}'/>";
		if(sortWay == "asc"){
			document.getElementById(imgId).src = "./images/arrow_up.gif";
		}else if(sortWay == "desc"){
			document.getElementById(imgId).src = "./images/arrow_down.gif";
		}else{
			document.getElementById(imgId).src = "./images/arrow_off.gif";
		}
	}
	
	/** window.onresize= new function{
        document.getElementById('table2').clientHeight-22;
    }*/
	
	
-->
</script>
</head>
<body onload="initPage()">
<form name="customerInfoForm" action="" method="post">
	<table class="table_frame">
		<tr>
			<td valign="top">
				<table class="table_title1">
					<tr>
						<td class="title_lab" >客户资料</td>
					</tr>
					<tr>
						<td valign="bottom" class="a_tools" style="padding-left: 3px;">
							<select id="viewType" name="viewType">
								<option value="0" <c:if test='${viewType == 0}'>selected</c:if> ><fmt:message key='common.select.all'/>
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								</option>
								<option value="1" <c:if test='${viewType == 1}'>selected</c:if> ><fmt:message key='customer.select.create'/></option>
								<option value="2" <c:if test='${viewType == 2}'>selected</c:if> ><fmt:message key='customer.select.follow'/></option>
							</select>
							<a class="search" href="javascript:change();" target="main" hidefocus="true">查询</a>
							|
							<a class="asearch" href="javascript:advancedQueryDialog();" hidefocus="true">高级查询</a>
							|
							<c:if test="${isAddCustomer == 1}">
							<a class="add" href="javascript:addCustomer();" hidefocus="true">新增</a>
							</c:if>
							<c:if test="${isUpdateCustomer == 1}">
							<a class="update" href="javascript:updateCustomer();" hidefocus="true">修改</a>
							</c:if>
							<c:if test="${isDiscardCustomer == 1}">
							<a class="del" href="javascript:discardCustomer();" hidefocus="true">丢弃</a>
							</c:if>
							<c:if test="${isShareCustomer == 1}">
							<a class="share" href="javascript:shareCustomer();" hidefocus="true">共享</a>
							</c:if>
							<a class="active" href="javascript:addSaleRecord();" hidefocus="true">活动</a>
							<a class="hangup" href="javascript:addSaleRecordHangup();" hidefocus="true">挂起</a>
							<a class="closestage" href="javascript:addSaleRecordClose();" hidefocus="true">关闭商机</a>
							<!-- 
							&nbsp;&nbsp;|&nbsp;&nbsp;
							<a href="#" hidefocus="true">邮件</a>&nbsp;&nbsp;
							<a href="#" hidefocus="true">生日</a>&nbsp;&nbsp;
							<a href="#" hidefocus="true">打印</a>
							 -->
						</td>
						<!-- 
						<td></td>
						<td valign="bottom" align="right">
							<c:if test="${isViewDepartmentCustomer == 1}">
							<a href="javascript:deptCustomer();" hidefocus="true">查看部门客户信息</a>&nbsp;&nbsp;
							</c:if>
						</td>
						 -->
					</tr>
					<tr><td height="2"></td></tr>
				</table>
			</td>
		</tr>
		<tr>
			<td valign="top">
				<table class="table_title2">
					<tr>
						<td>
							<table class="table">
								<tr>
									<td class="title_lab">客户资料</td>
									<td align="left" valign="bottom">
										<table class="table" style="font-weight: bold;">
											<tr>
												<td align="left">&nbsp;
													<img src="./images/limit1.jpg" style="vertical-align: middle;"/>&nbsp;<font class="font_bule">已保护</font>：
													<font class="font_orange">${customerLimitForm.currentCustomerNum}</font>&nbsp;<fmt:message key='common.lable.a'/>&nbsp;&nbsp;
													<img src="./images/limit2.jpg" style="vertical-align: middle;"/>&nbsp;<font class="font_bule">保护上限</font>：
													<c:choose>
														<c:when test="${isExpUser == 1}"><font class="font_orange">无限制</font></c:when>
														<c:otherwise><font class="font_orange">${customerLimitForm.totalCustomerLimit}</font>&nbsp;<fmt:message key='common.lable.a'/></c:otherwise>
													</c:choose>&nbsp;&nbsp;
													<img src="./images/limit3.jpg" style="vertical-align: middle;"/>&nbsp;<font class="font_bule">可保护</font>：
													<c:choose>
														<c:when test="${isExpUser == 1}"><font class="font_orange">无限制</font></c:when>
														<c:otherwise><font class="font_orange">${customerLimitForm.untappedCustomerNum}</font>&nbsp;<fmt:message key='common.lable.a'/></c:otherwise>
													</c:choose>
												</td>
											</tr>
										</table>
									</td>
									<td align="right" valign="">
										<!-- page -->
										<table class="table_page2">
											<tr>
												<td valign="bottom">
													<img src="./images/frist.bmp" onclick="pageCustomer(1)" alt="首页" style="vertical-align: middle;cursor: hand;">
													<img src="./images/last.bmp" onclick="pageCustomer(2)" alt="上一页" style="vertical-align: middle;cursor: hand;">&nbsp;
													<font color="red">${currentPage}</font>/${totalPages}&nbsp;<fmt:message key='common.page'/>&nbsp;
													<img src="./images/next.bmp" onclick="pageCustomer(3)" alt="下一页" style="vertical-align: middle;cursor: hand;">
													<img src="./images/end.bmp" onclick="pageCustomer(4)" alt="末页" style="vertical-align: middle;cursor: hand;">
													共&nbsp;&nbsp;${totalRows}&nbsp;<fmt:message key='common.page.totalRow'/>&nbsp;&nbsp;&nbsp;
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr><td colspan="3" height="2"></td></tr>
					<tr>
						<td colspan="3" valign="top">
							<table class="table">
								<tr>
									<td valign="top">
										<div id="d" style="width:850px;height:100%;overflow-x: scroll;overflow-y: hidden;">
										<table class="table_style" style="width: 1800px; word-break:break-all">
											<tr>
												<td class="title" width="8"></td>
												<td class="title" width="30">选择</td>
												<td class="title" width="30">共享</td>
												<td class="title" width="30">状态</td>
												<td class="title_sort" width="300" onclick="recordSort('customerName','5')">
													客户名称<img id="5" src="./images/arrow_off.gif" style="vertical-align: middle;">
												</td>
												<td class="title" width="60">销售代表</td>
												<td class="title" width="70">建档日期</td>
												<td class="title_sort" width="70" onclick="recordSort('lastLink','16')">
													最后联系<img id="16" src="./images/arrow_off.gif" style="vertical-align: middle;">
												</td>
												<td class="title" width="130">注册地址</td>
												<td class="title" width="300">销售进度</td>												
												<td class="title" width="100">联系电话</td>
												<td class="title" width="60">来源</td>
													<td class="title_sort" width="60" onclick="recordSort('industryId','9')">
													行业<img id="9" src="./images/arrow_off.gif" style="vertical-align: middle;">
												</td>
												<td class="title_sort" width="60" onclick="recordSort('areaId','10')">
													区域<img id="10" src="./images/arrow_off.gif" style="vertical-align: middle;">
												</td>
												<td class="title" width="60">联系人</td>
												<td class="title" width="60">联系次数</td>
												<td class="title_sort" width="60" onclick="recordSort('saleStageId','13')">
													销售阶段<img id="13" src="./images/arrow_off.gif" style="vertical-align: middle;">
												</td>
												<td class="title_sort" width="90" onclick="recordSort('predictCost','14')">
													预测签约<img id="14" src="./images/arrow_off.gif" style="vertical-align: middle;">
												</td>
												<td class="title_sort" width="90" onclick="recordSort('predictContract','15')">
													预测签约时间<img id="15" src="./images/arrow_off.gif" style="vertical-align: middle;">
												</td>
											</tr>
											<c:choose>
											<c:when test="${not empty customers}">
											<c:forEach var="customer" items="${customers}">
											<tr onmouseover="onmousemoveChange(this,'img${customer.id}')" onmouseout="onmouseoutChange(this,'img${customer.id}')">
												<td height="16" width="8" align="right"><img id="img${customer.id}" src="./images/table_sign2.bmp"></td>
												<td>
													<input id="id" name="id" type="checkbox" value="${customer.id}" />
													<!-- 
													<c:if test="${isAddCustomer == 1}">
													<a href="javascript:javascript:addLinkman('${customer.id}');" title="新增联系人">新增</a>
													</c:if>
													<c:if test="${isUpdateCustomer == 1}">
													<a href="javascript:javascript:updateLinkman('${customer.id}');" title="修改联系人">修改</a>
													</c:if>
													 -->
													<input id="share_${customer.id}" name="share_${customer.id}" type="hidden" value="${customer.isWrite}"/>
													<input id="userId_${customer.id}" name="userId_${customer.id}" type="hidden" value="${customer.salePersonId}"/>
													<input id="customer_${customer.id}" name="customer_${customer.id}" type="hidden" value="${customer.customerName}"/>
													<input id="del_${customer.id}" name="del_${customer.id}" type="hidden" value="${customer.salePersonId == userId}"/>
													<input id="hangup_${customer.id}" name="hangup_${customer.id}" type="hidden" value="${customer.saleStatus}"/>
													<input id="saleStage_${customer.id}" name="saleStage_${customer.id}" type="hidden" value="${customer.saleStageId}"/>
												</td>
												<td align="center">
													<c:if test="${customer.isShare == 1}">
													<img class="btn_img" src="./images/share.gif" onclick="" title="<fmt:message key='customer.lable.share'/>">
													</c:if>
												</td>
												<td align="center">
													<c:if test="${customer.isFollow == 1}">
													<img class="btn_img" src="./images/follow.gif" onclick="" title="<fmt:message key='customer.lable.follow'/>">&nbsp;&nbsp;
													</c:if>
												</td>
												<td align="left"><a href="./customerManage.do?action=customerDetail&customerId=${customer.id}&sign=11" target="main">${customer.customerName}</a></td>
												<td>${customer.salePerson}</td>
												<td><fmt:formatDate value="${customer.createDate}" pattern="yyyy-MM-dd"/></td>
												<td><fmt:formatDate value="${customer.lastLink}" pattern="yyyy-MM-dd"/></td>
												<td>${customer.summaryAddress}</td>
												<td>${customer.customItem2}</td>												
												<td>${customer.phone}</td>
												<td>
													<c:choose>
														<c:when test="${customer.customerSourceId == 1}"><fmt:message key='customer.select.self'/></c:when>
														<c:when test="${customer.customerSourceId == 2}"><fmt:message key='customer.select.companySet'/></c:when>
														<c:when test="${customer.customerSourceId == 3}"><fmt:message key='customer.select.market'/></c:when>
														<c:otherwise><fmt:message key='customer.select.other'/></c:otherwise>
													</c:choose>
												</td>
												<td>
													<c:forEach var="range" items="${ranges['110']}">
														<c:if test='${customer.industryId == range.id}'>${range.rangeValue}</c:if>
													</c:forEach>
												</td>
												<td>
													<c:forEach var="range" items="${ranges['111']}">
														<c:if test='${customer.areaId == range.id}'>${range.rangeValue}</c:if>
													</c:forEach>
												</td>
												<td>${customer.linkmanNum}</td>
												<td>${customer.linkNum}</td>
												<td>
													${customer.saleStage}
													<font color="red">
													<c:choose>
														<c:when test="${customer.saleStatus == '1'}">[挂起]</c:when>
														<c:when test="${customer.saleStatus == '4'}">[关闭商机]</c:when>
													</c:choose>
													</font>
												</td>
												<td>
													<c:choose>
														<c:when test="${not empty customer.predictCost}">
															￥&nbsp;<fmt:formatNumber value="${customer.predictCost}" pattern="###,###,###,###"/>
														</c:when>
														<c:otherwise>￥&nbsp;0.00</c:otherwise>
													</c:choose>
													
												</td>
												<td><fmt:formatDate value="${customer.predictContract}" pattern="yyyy-MM-dd"/></td>
											</tr>
											</c:forEach>
											</c:when>
											<c:otherwise><tr><td colspan="9" align="center"><img src="./images/nodata.bmp"></td></tr></c:otherwise>
											</c:choose>
										</table>
										</div>
									</td>
								</tr>
								<tr>
									<td align="left" valign="bottom">
										<!-- page -->
										<table id="tp" class="table_page">
											<tr>
												<td>&nbsp;&nbsp;
													<img src="./images/frist.bmp" onclick="pageCustomer(1)" alt="首页" style="vertical-align: middle;cursor: hand;">
													<img src="./images/last.bmp" onclick="pageCustomer(2)" alt="上一页" style="vertical-align: middle;cursor: hand;">&nbsp;
													<font color="red">${currentPage}</font>/${totalPages}&nbsp;<fmt:message key='common.page'/>&nbsp;
													<img src="./images/next.bmp" onclick="pageCustomer(3)" alt="下一页" style="vertical-align: middle;cursor: hand;">
													<img src="./images/end.bmp" onclick="pageCustomer(4)" alt="末页" style="vertical-align: middle;cursor: hand;">
													共&nbsp;&nbsp;${totalRows}&nbsp;<fmt:message key='common.page.totalRow'/>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<input id="customerCode" name="customerCode" type="hidden" value="${queryCustomer.customerCode}"/>
	<input id="customerName" name="customerName" type="hidden" value="${queryCustomer.customerName}"/>
	<input id="industryId" name="industryId" type="hidden" value="${queryCustomer.industryId}"/>
	<input id="areaId" name="areaId" type="hidden" value="${queryCustomer.areaId}"/>
	<input id="customerSourceId" name="customerSourceId" type="hidden" value="${queryCustomer.customerSourceId}"/>
	<input id="requireDesc" name="requireDesc" type="hidden" value="${queryCustomer.requireDesc}"/>
	<input id="startCreateDate" name="startCreateDate" type="hidden" value="${queryCustomer.startCreateDate}"/>
	<input id="endCreateDate" name="endCreateDate" type="hidden" value="${queryCustomer.endCreateDate}"/>
	<input id="startLastLinkDate" name="startLastLinkDate" type="hidden" value="${queryCustomer.startLastLinkDate}"/>
	<input id="endLastLinkDate" name="endLastLinkDate" type="hidden" value="${queryCustomer.endLastLinkDate}"/>
	<input id="sFlag" name="sFlag" type="hidden" value="${sFlag}"/>
	
	<input id="sortSign" name="sortSign" type="hidden" value="${sortSign}"/>
	<input id="sortRecord" name="sortRecord" type="hidden" value="${queryCustomer.sortRecord}"/>
	<input id="sortWay" name="sortWay" type="hidden" value="${queryCustomer.sortWay}"/>
	<input id="imgId" name="imgId" type="hidden" value="${imgId}"/>
</form>
</body>
</html>